<?php 
	$LabelHtmlOption = array('style'=>'margin-top:0px;');
	$SelectFieldHtmlOption = array('style'=>'font-size:14pt;width:277px');
	CHtml::$afterRequiredLabel = '';
	CHtml::$beforeRequiredLabel = '* ';
?>
<div class="form">
<?php
	$form=$this->beginWidget('CActiveForm', array(
	'id'=>'Reference-form',
	'enableClientValidation'=>true,
	//'htmlOptions'=>array('enctype' => 'multipart/form-data'),
	'clientOptions'=>array(
	//	'enctype'=>'multipart/form-data',
		'validateOnSubmit'=>true,
	),
));
?>
	<table class="form2c">
		<tr >
			<th colspan='2'>
				<h3>Album Particulars</h3>
			</th>
		</tr>
		<tr ><td style='height:6px'></td><td ></td></tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'name',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->textField($model,'name'); ?>
				<span class='abbr'>
					<div class="hide">
						CD Album Name
					</div>
				</span>
				 <?php echo $form->error($model,'name'); ?>
			</td>
		</tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'artist_id',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->dropDownList($model,'artist_id',Fish::getList('artist','name')); ?>
				 <?php echo $form->error($model,'artist_id'); ?>
			</td>
		</tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'year',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->textField($model,'year',array('style'=>'width:60px','class'=>'digit','max'=>date('Y'))); ?>
				 <?php echo $form->error($model,'year'); ?>
			</td>
		</tr>
		<tr >
			<td ><?php echo $form->labelEx($model,'tags',$LabelHtmlOption); ?></td>
			<td ><?php echo $form->textField($model,'tags'); ?>
				<span class='abbr'>
					<div class="hide">
						Separate by comma , for mutiple tags
					</div>
				</span>
				 <?php echo $form->error($model,'tags'); ?>
			</td>
		</tr>
		<tr >
			<td style='height:20px'></td>
			<td ></td>
		</tr>
		<tr >
			<th >
				
			</th>
			<td >
				<?php echo CHtml::tag('button',array('class'=>'bt3'),'Submit'); ?>
			</td>
		</tr>
	</table>
<?php $this->endWidget(); ?>
<div class='clear' style='height:20px;'></div>